<script setup lang="ts">
import CommonHeader from "../components/CommonHeader.vue";
import {defineComponent} from "vue";
import CommonAside from "../components/CommonAside.vue";

defineComponent({
  components: {
    CommonHeader,
    CommonAside
  }
})
</script>

<template>
  <el-container class="layout-container">
    <!-- 左侧菜单 -->
    <CommonAside/>
    <!-- 右侧主区域 -->
    <el-container>
      <!-- 头部区域 -->
      <CommonHeader/>
      <!-- 中间区域 -->
      <el-main>
        <router-view/>
      </el-main>
      <!-- 底部区域 -->
      <el-footer>管理系统 ©2024</el-footer>
    </el-container>
  </el-container>
</template>

<style lang="scss" scoped>
.layout-container {
  height: 100vh;
  .el-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #8c1b1b;
  }
}
</style>
